<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.List"%>
    <%@ page import="entities.Message"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>List of new users</title>
</head>
<body>
	<form action="ValidateUser" method="POST">
		<table border="1" width="303">
		<tr>
			<td width="119"><b>Sender</b></td>
			<td width="168"><b>Header</b></td>
			<td width="168"><b>Asunto</b></td>
		</tr>
		<%int i; %>

		<% List<Message> data= (List<Message>)request.getAttribute("data");
			for (i=0; i<data.size(); i++ )
		{
		%>
		<tr>
			<td width="119"><%=data.get(i).getSender()%></td>
			<td width="168"><%=data.get(i).getHeader()%></td>
			<td width="168"><%=data.get(i).getAsunto()%></td>
		</tr>
		<%}%>
		</table>
		
		<br><br>
		
		
	</form>

</body>
</html>